package com.sky.mapper;/*
 * ClassName: SetMealDishMapper
 * Package : com.sky.mapper
 * Description:
 * @Author zKer
 * @Create 2024/4/14 16:34
 */

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetMealDishMapper {

    List<Long> getSetMealIdsByDishIds(List<Long> dishIds);


    void insertBatch(List<SetmealDish> setmealDishes);

    @Select("select * from setmeal_dish where setmeal_id = #{setmealId}")
    List<SetmealDish> selectDishBySetmealId(Long setmealId);



    void deleteBySetmealId(Long setmealId);
}
